package com.ronghui.cash.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户消息表
 * </p>
 *
 * @author wiki
 * @since 2017-12-06
 */
@TableName("user_msg")
public class UserMsg extends Model<UserMsg> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 标题
     */
	private String title;
    /**
     * 消息内容
     */
	private String content;
    /**
     * 类型 1提交订单，2消费，3还款，4逾期
     */
	private Integer type;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private String createTime;
    /**
     *  状态：1未读  2已读
     */
	private Integer status;
    /**
     * 用户ID
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 订单id
     */
	@TableField("orders_id")
	private Long ordersId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getOrdersId() {
		return ordersId;
	}

	public void setOrdersId(Long ordersId) {
		this.ordersId = ordersId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
